package com.example.javapractice.j8;

/**
* @author wzh
* @date 2021/7/15 10:28 上午
* @Description   Lambda练习
*/
public class LambdaTest {
    public static void main(String[] args) {
        //1.1 启动线程-简化代码
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("启动线程");
            }
        }).start();
        //lambda优化
        new Thread(()->{
            System.out.println("lambda启动线程");
        }).start();

        //函数式编程

    }
}
